package com.wangrui.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //登录
        registry.addViewController("/main.html").setViewName("/main/main");
        registry.addViewController("/newMain").setViewName("/main/newMain");
        registry.addViewController("/permissionList").setViewName("/permission/permissionList");
        registry.addViewController("/setroles.html").setViewName("/user/setroles");
        registry.addViewController("/datagrid-export.html").setViewName("/excel/datagrid-export");
        registry.addViewController("/datagrid-export-pdf.html").setViewName("/excel/datagrid-export-pdf");
    }
}
